<?php 
$ref="W".date("siHdmY");


?>

<script>

    $.get("/portlet.php",
        { app: "portal_admin",module:"portal_credentials",operation:"updateobject",objectname:$("#x_objectName").val(),id:$("#x_objectId").val()},
        function(data){

            $("#el_objectId").html(data);
        });

    $("#x_objectName").change(function(){



        $.get("/portlet.php",
            { app: "portal_admin",module:"portal_credentials",operation:"updateobject",objectname:$(this).val()},
            function(data){

                $("#el_objectId").html(data);
            });

    });
    //el_objectId
</script>